Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce dumpUnimportComponents option #830

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ilyaliao
Copy link

@ilyaliao ilyaliao commented Feb 24, 2025

Description

This PR will add a dumpUnimportComponents option to export information about all components.

I recently created an eslint-plugin-unimport-components tool to automatically complete imports, inspired by eslint-plugin-unimport. I hope to collaborate with unplugin-vue-components to obtain information about all components, allowing ESLint to automatically import components.

(Automatically Generated Components JSON File)
截圖 2025-02-25 凌晨2 01 29

(Eslint Error Message)
截圖 2025-02-25 凌晨2 04 46

@ilyaliao ilyaliao requested a review from antfu as a code owner February 24, 2025 17:56
Copy link

stackblitz bot commented Feb 24, 2025

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@antfu
Copy link
Member

antfu commented Mar 26, 2025

Why this is called unimport? it seems to be unrelated to unimport

@ilyaliao
Copy link
Author

ilyaliao commented Mar 26, 2025

Why this is called unimport? it seems to be unrelated to unimport

Sorry, I referenced the name dumpUnimportItems from unplugin-auto-import. Do you want me to change it?

https://github.com/unplugin/unplugin-auto-import/blob/c5a84dcf0f11a91d327fcd3dabfa85569ef203da/src/types.ts#L234

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants